package com.lemon.blog.web.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.lemon.common.core.annotation.Excel;
import com.lemon.common.core.serializer.JsonLongDeserializer;
import com.lemon.common.core.serializer.JsonLongSerializer;
import com.lemon.common.core.web.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 分类管理对象 bl_type
 * 
 * @author huangpeng
 * @date 2022-04-24
 */
public class BlType extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类id */
    @JsonSerialize(using = JsonLongSerializer.class)
    @JsonDeserialize(using = JsonLongDeserializer.class)
    private Long id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String typeName;

    /** 帖子数 */
    @Excel(name = "帖子数")
    private Long typeBlogCount;

    /** 分类颜色 */
    @Excel(name = "分类颜色")
    private String typeColor;

    /** 分类编码 */
    @Excel(name = "分类编码")
    private String typeCode;

    /** 是否启用，0否2是 */
    @Excel(name = "是否启用，0否2是")
    private String enable;

    /** 父分类编码 */
    @Excel(name = "父分类编码")
    private String typeCodeP;

    /** 是否删除，0否2是 */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setTypeBlogCount(Long typeBlogCount) 
    {
        this.typeBlogCount = typeBlogCount;
    }

    public Long getTypeBlogCount() 
    {
        return typeBlogCount;
    }
    public void setTypeColor(String typeColor) 
    {
        this.typeColor = typeColor;
    }

    public String getTypeColor() 
    {
        return typeColor;
    }
    public void setTypeCode(String typeCode) 
    {
        this.typeCode = typeCode;
    }

    public String getTypeCode() 
    {
        return typeCode;
    }
    public void setEnable(String enable) 
    {
        this.enable = enable;
    }

    public String getEnable() 
    {
        return enable;
    }
    public void setTypeCodeP(String typeCodeP) 
    {
        this.typeCodeP = typeCodeP;
    }

    public String getTypeCodeP() 
    {
        return typeCodeP;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("typeId", getId())
            .append("typeName", getTypeName())
            .append("typeBlogCount", getTypeBlogCount())
            .append("typeColor", getTypeColor())
            .append("typeCode", getTypeCode())
            .append("enable", getEnable())
            .append("typeCodeP", getTypeCodeP())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
